package com.koron.order.overhaul.bean.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.order.overhaul.utils.DeleteFlag;
import com.koron.order.overhaul.utils.Sortable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (OverhaulOrderItemParamsBean) 大修工单--业过程维护参数从表
 * @author twcao
 * @since 2021-09-29 09:49:28
 */
@Data
@ApiModel("大修工单--业过程维护参数从表")
public class OverhaulOrderItemParamsBean implements Serializable, Sortable, DeleteFlag {
    private static final long serialVersionUID = -40119590084785371L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "大修工单表主键")
    private String overhaulId;

    @ApiModelProperty(value = "大修工单专业表主键")
    private String majorId;

    @ApiModelProperty(value = "大修工单-表单ID")
    private String formId;

    @ApiModelProperty(value = "维护项目ID")
    private String itemId;

    @ApiModelProperty(value = "设备ID")
    private String equipmentId;

    @ApiModelProperty(value = "参数ID")
    private String standardParamId;

    @ApiModelProperty(value = "参数名")
    private String name;

    @ApiModelProperty(value = "参数值")
    private String value;

    @ApiModelProperty(value = "计量单位")
    private String unit;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "删除标志, 0：delete_flag=false，代表未删除：delete_flag=true，代表已删除")
    private Boolean deleteFlag;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

}
